package com.csun.cmny.provider.model.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2018-12-13 11:26
 * @Description:
 */
@Data
@ApiModel("部门")
public class DeptVo implements Serializable {

    private static final long serialVersionUID = -6266714376025024646L;

    @ApiModelProperty("部门Id")
    private Long id;

    @ApiModelProperty("父Id")
    private Long pid;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("序号")
    private Integer number;

    @ApiModelProperty("部门描述")
    private String remark;

    @ApiModelProperty("部门级别")
    private Integer level;

    @ApiModelProperty("是否为叶子节点")
    private Integer leaf;

    @ApiModelProperty("子部门信息")
    private List<DeptVo> subDept;

    @ApiModelProperty("部门员工信息")
    private List<EmpVo> empVoList;

    private boolean hasDept = false;
}
